import { Pipe, PipeTransform } from '@angular/core'

@Pipe({
  name: 'estateActType'
})
export class EstateActTypePipe implements PipeTransform {
  transform(type): any {
    switch (type) {
      case 'PromotionCategory_Discount':
        return '惠'
        break
      case 'PromotionCategory_Hot':
        return '热'
        break
      case 'PromotionCategory_Gift':
        return '礼'
      case 'PromotionCategory_Cash':
        return '返'
        break
      default:
        return '惠'
    }
  }
}
